package com.hotel.hotelsystem.pojo;


import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * (HotelList)表实体类
 *
 * @author makejava
 * @since 2022-09-30 18:23:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "hotellist")
public class HotelListES {
    @Id
    private Integer hotelSelectId;
    //酒店图片
    @Field(type = FieldType.Auto)
    private String hotelShowImg;
    //酒店id外键
    @Field(type = FieldType.Auto)
    private Integer hotelId;
    // 酒店名称
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_max_word")//设置为text  可以分词
    private String hotelName;
    //酒店星级
    @Field(type = FieldType.Auto)
    private Integer starRanting;
    //房间起步价
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_max_word")//设置为text  可以分词
    private Integer roomLeastPrice;
    //酒店评分
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_max_word")//设置为text  可以分词
    private String hotelMark;
    //行锁
    @Field(type = FieldType.Auto)
    private Integer version;
    //状态
    @Field(type = FieldType.Auto)
    private Integer state;
    //创建时间
    @Field(type = FieldType.Auto)
    private LocalDateTime createTime;
    //更新时间
    @Field(type = FieldType.Auto)
    private LocalDateTime updateTime;
    //入住人数
    @Field(type = FieldType.Auto)
    private String standby01;
    //备用字段02
    @Field(type = FieldType.Auto)
    private String standby02;

}

